package com.atguigu.test.context;

import com.atguigu.test.config.SpringWebConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author zp
 * @version 1.0
 * @description: springboot方式启动
 * @date 2022/12/14 20:14
 */
@SpringBootApplication
public class MySpringBootApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringWebConfig.class,args);
        applicationContext.close();
    }

}
